/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.wx.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * wx_user_dis_valueEntity
 * @author wangjianxin
 * @version 2018-10-02
 */
@Table(name="wx_user_dis_value", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="user_id", attrName="userId", label="user_id"),
		@Column(name="user_open_id", attrName="userOpenId", label="user_open_id"),
		@Column(name="buy_user_id", attrName="buyUserId", label="buy_user_id"),
		@Column(name="buy_user_open_id", attrName="buyUserOpenId", label="buy_user_open_id"),
		@Column(name="buy_activity_id", attrName="buyActivityId", label="buy_activity_id"),
		@Column(name="buy_price", attrName="buyPrice", label="buy_price"),
		@Column(name="dis_money_value", attrName="disMoneyValue", label="dis_money_value"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class WxUserDisValue extends DataEntity<WxUserDisValue> {
	
	private static final long serialVersionUID = 1L;
	private Long userId;		// user_id
	private String userOpenId;		// user_open_id
	private Long buyUserId;		// buy_user_id
	private String buyUserOpenId;		// buy_user_open_id
	private Long buyActivityId;		// buy_activity_id
	private Integer buyPrice;		// buy_price
	private Integer disMoneyValue;		// dis_money_value
	
	public WxUserDisValue() {
		this(null);
	}

	public WxUserDisValue(String id){
		super(id);
	}
	
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	@Length(min=0, max=200, message="user_open_id长度不能超过 200 个字符")
	public String getUserOpenId() {
		return userOpenId;
	}

	public void setUserOpenId(String userOpenId) {
		this.userOpenId = userOpenId;
	}
	
	public Long getBuyUserId() {
		return buyUserId;
	}

	public void setBuyUserId(Long buyUserId) {
		this.buyUserId = buyUserId;
	}
	
	@Length(min=0, max=200, message="buy_user_open_id长度不能超过 200 个字符")
	public String getBuyUserOpenId() {
		return buyUserOpenId;
	}

	public void setBuyUserOpenId(String buyUserOpenId) {
		this.buyUserOpenId = buyUserOpenId;
	}
	
	public Long getBuyActivityId() {
		return buyActivityId;
	}

	public void setBuyActivityId(Long buyActivityId) {
		this.buyActivityId = buyActivityId;
	}
	
	public Integer getBuyPrice() {
		return buyPrice;
	}

	public void setBuyPrice(Integer buyPrice) {
		this.buyPrice = buyPrice;
	}
	
	public Integer getDisMoneyValue() {
		return disMoneyValue;
	}

	public void setDisMoneyValue(Integer disMoneyValue) {
		this.disMoneyValue = disMoneyValue;
	}
	
}